﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContentManager.ascx.cs"
    Inherits="Jungle.Admin.Controls.ContentManager" %>
    
<asp:HyperLink ID="FullLink" Text="Прямая ссылка на страницу:" style="padding: 4px;" runat="server" />    
<div class="width-fix">
    <div class="workarea">
        <asp:PlaceHolder runat="server" ID="templateHolder" />
    </div>
</div>

<table>
<tr><td>

    <table cellspacing="7" style="border: 1px solid #AEA68E; margin: 2px;">
    <tr>
        <td>Контейнер:</td><td><asp:DropDownList runat="server" ID="ddlContainers" CssClass="fob-select"/></td>
    </tr>
    <tr>
        <td>Модуль:</td><td><asp:DropDownList runat="server" ID="ddlModules" CssClass="fob-select" /></td>
    </tr>
    <tr>
        <td colspan=2><asp:ImageButton ID="btAdd" AlternateText="Добавить модуль" OnClick="InsertClick" ImageUrl="~/Admin/img/add.jpg" ValidationGroup="mainValid" runat="server" /><p><p></td>
    </tr>
    </table>

</td>
<td valign="top">    

    <table cellspacing="7px" cellpadding="7px" style="border: 1px solid #AEA68E; margin: 2px; padding: 10px;">
    <tr>
        <td>Шаблон:</td><td><asp:DropDownList ID="ddlTemplateID" runat="server" CssClass="fob-select" DataTextField="Name" DataValueField="TemplateID" /></td>
    </tr>
    <tr>
        <td colspan=2><asp:ImageButton ID="ImageButton1" AlternateText="Изменить шаблон" OnClick="UpdateTemplate" ImageUrl="~/Admin/img/edit.jpg" ValidationGroup="mainValid" runat="server" />
        </td>
    </tr>
    </table>
 
</td></tr>
</table>

<asp:Table ID="delNodeForm"  HorizontalAlign="Center" Visible="false" style="position:absolute; z-index: 50; left:35%; top: 30%; width: 25%; height: 10%; background-image: url('/Admin/img/fon.jpg'); background-repeat: none;" runat="server">
<asp:TableRow ID="TableRow1" runat="server"><asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Center" ForeColor="#FFFFFF" Font-Bold="true" Font-Size="10" style="padding: 10px;">
Вы действительно хотите удалить страницу? <p>
<asp:ImageButton ID="yes" ImageUrl="~/Admin/img/but_yes.jpg" style="margin-top: 4px; margin-right: 4px;" OnClick="DeleteNode" runat="server"/>
<asp:ImageButton ID="no" ImageUrl="~/Admin/img/but_no.jpg" style="margin-top: 4px; margin-left: 4px;" OnClick="noEvent" runat="server"/>
</asp:TableCell></asp:TableRow> 
</asp:Table>

<div align="right"><asp:ImageButton ID="delNode" ImageUrl="~/Admin/img/trash.gif" OnClick="showDelForm" AlternateText="Удалить страницу" runat="server" /></div>


<script runat="server" >
    void showDelForm(object sender, EventArgs e)
    {
        delNodeForm.Visible = true;
    }

    void noEvent(object sender, EventArgs e)
    {
        delNodeForm.Visible = false;
    }
</script>


